package cn.kgc.mapper;

import cn.kgc.pojo.HotelTempStore;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;

public interface HotelTempStoreMapper extends Mapper<HotelTempStore> {

    int countRecordDate(@Param("roomId") Long roomId,@Param("checkInDate") Date checkInDate);

    long getMinStore(@Param("roomId") Long roomId, @Param("checkInDate") Date checkInDate ,@Param("checkOutDate") Date checkOutDate);

    int updateTempStoreByDate(@Param("count")Integer count,@Param("checkInDate") Date checkInDate,@Param("checkOutDate") Date checkOutDate,@Param("roomId") Long roomId,@Param("hotelId") Long hotelId);
}